<div class="tabContent">
<?php echo validation_errors('<p class="error">', '</p>'); ?>
<?php 
$attributes = array('class' => 'form_inputs adminForm ', 'id' => '');
$hidden = array('id' => $model['id']);
echo form_open_multipart('',$attributes,$hidden) //form_open //form_open_multipart?>
<table class="tableForm" width="100%" cellspacing="0" cellpadding="0" border="0">
<tbody>
	<tr>
		<td width="120">
			<?php echo form_label(lang('users:username'),'username')?>
		</td>
		<td>
        	<?php if(empty($model['id'])){?>
			<?php 
			$data = array('name'=>'username','id'=>'username','value'=> $model['username'],'maxlength'=>20,'class'=>'inputText medium');
			echo form_input($data);
			}else {?>
            <strong><?php echo $model['username'] ?></strong>
            <?php  } ?>
		</td>
    </tr>
	<tr>
		<td>
			<?php echo form_label(lang('users:password'),'password')?>
		</td>
		<td>
			<?php 
			$data = array('name'=>'password','id'=>'password','value'=> $model['password'],'maxlength'=>20,'class'=>'inputText medium','placeholder ' => !empty($msg_pass) ? $msg_pass : "");
			echo form_password($data)?>
		</td>
    </tr>
	<tr>
		<td width="120">
			<?php echo form_label(lang('users:passwordconf'),'passwordconf')?>
		</td>
		<td>
			<?php 
			$data = array('name'=>'passwordconf','id'=>'passwordconf','value'=> $model['passwordconf'],'maxlength'=>20,'class'=>'inputText medium','placeholder ' => !empty($msg_pass) ? $msg_pass : "");
			echo form_password($data)?>
		</td>
    </tr>     
   
	<tr>
		<td>
			<?php echo form_label(lang('users:groups:group'),'group_id')?>
		</td>
		<td>
         <?php if(!isset($remove)){ ?>
			<?php echo form_dropdown('group_id',array(''=>'------') + $groups_select,$model['group_id'],'class="chzn-select-deselect" style="width:20%" ')?>
            <?php } else {
				foreach($groups_select as $key=>$value){
					if($key == $model['group_id'])
						echo $value;
				}
				 ?>
            	
            <?php } ?>
		</td>
    </tr>
	{{if model:id != 1}}
	<tr>
		<td>
			<?php echo form_label(lang('users:room'),'room_id')?>
		</td>
		<td>
         <?php if(!isset($remove)){ ?>
			<?php echo form_dropdown('room_id',array(''=>'------') + $room_select,$model['room_id'],'class="chzn-select-deselect" style="min-width:40%" ')?>
            <?php } else {
				foreach($room_select as $key=>$value){
					if($key == $model['room_id'])
						echo $value;
				}
				 ?>
            	
            <?php } ?>
		</td>
    </tr>
	{{endif}}
	
	<tr>
		<td>
			<?php echo form_label(lang('users:display_name'),'display_name')?>
		</td>
		<td>
			<?php 
			$data = array('name'=>'display_name','id'=>'display_name','value'=> $model['display_name'],'maxlength'=>30,'class'=>'inputText medium');
			echo form_input($data)?>
		</td>
    </tr>    
    <?php if(!isset($remove)){ ?>
	<tr>
		<td>
			<?php echo form_label(lang('users:active'),'active')?>
		</td>
		<td>
			<?php 
				echo form_checkbox('active',1,$model['active'])
			?>
		</td>
    </tr>  
    <?php } ?>         
</tbody>
</table>
{{ theme:partial name="_form_button" }}

<?php echo form_close()?>
</div>